/* ---------- tokens ---------- */
:root{
  --ink:          #1c1650;   /* deep navy — headings, hero surfaces */
  --ink-soft:     #34306f;   /* secondary navy */
  --coral:        #ff6a52;   /* primary accent */
  --coral-dark:   #e5573f;
  --mist:         #f2effc;   /* light lavender section bg */
  --mist-line:    #e1dcf5;   /* hairline on light bg */
  --paper:        #ffffff;
  --text-muted:   #5b577f;

  --display: 'Unbounded', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;

  --container: 1080px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img{ display:block; max-width:100%; }
a{ color:inherit; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- logo ---------- */
.logo{
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo span{ color: var(--coral); }
.logo--small{ font-size: 17px; }

/* ---------- topbar ---------- */
.topbar{
  padding: 22px 0;
}
.topbar__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.topbar__link{
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.topbar__link:hover{
  color: var(--ink);
  border-bottom-color: var(--mist-line);
}

/* ---------- hero ---------- */
.hero{
  padding: 12px 0 76px;
}
.hero__inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.hero__banner{
  position:relative;
  width:100%;
  max-width: 300px;
  padding: 22px;
  margin-bottom: 40px;
  border-radius: 32px;
  background:
    radial-gradient(120% 140% at 30% 15%, #4a3f9e 0%, #241c6b 45%, #17123f 100%);
  isolation:isolate;
}
.hero__banner::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:32px;
  box-shadow: 0 30px 60px -20px rgba(28,22,80,.45);
  pointer-events:none;
  z-index:-1;
}
.hero__banner img{
  width:100%;
  height:auto;
  border-radius: 14px;
}

.hero__title{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 15ch;
}

.hero__text{
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero__note{
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 16px 0 0;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  text-decoration:none;
  border-radius: 999px;
  padding: 15px 40px;
  border: none;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--primary{
  background: var(--coral);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(255,106,82,.55);
}
.btn--primary:hover{
  background: var(--coral-dark);
  transform: translateY(-1px);
}
.btn--primary:active{
  transform: translateY(0);
}

/* ---------- features ---------- */
.features{
  background: var(--mist);
  padding: 64px 0 84px;
  border-top: 1px solid var(--mist-line);
}
.features__title{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 32px;
  text-align:center;
}

.features__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card{
  background: var(--paper);
  border: 1px solid var(--mist-line);
  border-radius: 20px;
  padding: 26px 24px 28px;
}
.card--accent{
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.card--accent .card__text{ color: rgba(255,255,255,.72); }
.card--accent .card__icon{ color: var(--coral); background: rgba(255,255,255,.08); }

.card__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--coral);
  background: #fff1ee;
  margin-bottom: 18px;
}
.card__icon svg{ width: 22px; height: 22px; }

.card__title{
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.card__text{
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- footer ---------- */
.footer{
  padding: 28px 0 36px;
}
.footer__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__link{
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration:none;
  border-bottom: 1px solid var(--mist-line);
}
.footer__link:hover{ color: var(--ink); }

/* ---------- privacy policy dialog ---------- */
.policy{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.policy.is-open{
  display: block;
}
.policy__backdrop{
  position:absolute;
  inset:0;
  background: rgba(23, 18, 63, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .2s ease;
}
.policy.is-open .policy__backdrop{ opacity: 1; }

.policy__panel{
  position:absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 24px);
  width: min(680px, 100%);
  height: min(82vh, 720px);
  max-height: min(82vh, 720px);
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  display:flex;
  flex-direction:column;
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s ease, transform .25s ease;
  box-shadow: 0 -20px 60px -20px rgba(23,18,63,.35);
}
.policy.is-open .policy__panel{
  opacity: 1;
  transform: translate(-50%, 0);
}

.policy__head{
  position: sticky;
  top: 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--mist-line);
  border-radius: 24px 24px 0 0;
  flex: none;
}
.policy__title{
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}
.policy__close{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  border: none;
  background: var(--mist);
  color: var(--ink);
  cursor:pointer;
  transition: background-color .15s ease;
}
.policy__close svg{ width: 16px; height: 16px; }
.policy__close:hover{ background: var(--mist-line); }

.policy__body{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 24px 32px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}
.policy__body h3{
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 22px 0 8px;
}
.policy__body h3:first-child{ margin-top: 0; }
.policy__body p{ margin: 0 0 12px; }
.policy__body ul{ margin: 0 0 12px; padding-left: 20px; }
.policy__body li{ margin-bottom: 6px; }

.policy__demo{
  background: #fff1ee;
  color: var(--coral-dark);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ---------- responsive ---------- */
@media (min-width: 640px){
  .policy__panel{
    bottom: 50%;
    transform: translate(-50%, calc(50% + 24px));
    border-radius: 24px;
  }
  .policy.is-open .policy__panel{
    transform: translate(-50%, 50%);
  }
  .policy__head{ border-radius: 24px 24px 0 0; }
}

@media (max-width: 720px){
  .features__grid{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .hero__banner{ max-width: 240px; padding: 16px; border-radius: 26px; }
  .hero__banner img{ border-radius: 10px; }
  .btn{ width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
